import request from '@/utils/request'

// 查询入库通知单明细列表
export function listShipNoticeItem(query) {
  return request({
    url: '/purchase/shipNoticeItem/list',
    method: 'post',
    data: query
  })
}

// 查询入库通知单明细详细
export function getShipNoticeItem(id) {
  return request({
    url: '/purchase/shipNoticeItem/' + id,
    method: 'get'
  })
}

// 新增入库通知单明细
export function addShipNoticeItem(data) {
  return request({
    url: '/purchase/shipNoticeItem/add',
    method: 'post',
    data: data
  })
}

// 修改入库通知单明细
export function updateShipNoticeItem(data) {
  return request({
    url: '/purchase/shipNoticeItem/update',
    method: 'post',
    data: data
  })
}

// 删除入库通知单明细
export function delShipNoticeItem(id) {
  return request({
    url: '/purchase/shipNoticeItem/delete/' + id,
    method: 'post'
  })
}

export function getShipNoticeItemsByNoticeId(id){
    return request({
        url: '/purchase/shipNoticeItem/getShipNoticeItemsByNoticeId/' + id,
        method: 'get'
    })
}